import {Injectable} from "@angular/core";
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs";

@Injectable()
export class RuleService {
  constructor(private http: HttpClient) {
  }

  list(): Observable<object[]> {
    return this.http.get<object[]>('/rule');
  }
}
